<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:doc="livcos.org/ns/doc"
  xmlns="http://www.w3.org/1999/xhtml"
  exclude-result-prefixes="doc">
  
  <xsl:import href="/livcos.org/web/document.xsl"/>
  
  <xsl:template match="doc:document/doc:head">
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      <meta name="served" content="{current-dateTime()}"/>
      <title><xsl:value-of select="doc:title" /></title>
      <link href="{$toRootPath}/livcos.org/web/css/global.css" rel="stylesheet" type="text/css" />
      <link href="{$toRootPath}/livcos.org/web/css/web.css" rel="stylesheet" type="text/css" />
      <link href="{$toRootPath}/livcos.org/web/css/gui.css" rel="stylesheet" type="text/css" />
      <link href="{$toRootPath}/livcos.org/web/css/doc.css" rel="stylesheet" type="text/css" />
    	<link href="{$toRootPath}/livcos.org/web/css/status.css" rel="stylesheet" type="text/css" />
    	<link href="{$toRootPath}/livcos.org/web/css/edit.css" rel="stylesheet" type="text/css" />
    	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/script/util.js"><xsl:comment> </xsl:comment></script>
    	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/script/E.js"><xsl:comment> </xsl:comment></script>
    	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/script/init.js"><xsl:comment> </xsl:comment></script>
      <xsl:if test="$incl-editor = '1'">
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/script/DragDrop.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/script/gui.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/script/doc.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/editSetup.js"><xsl:comment> </xsl:comment></script>

      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/Entity.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/EntityView.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/editActions.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/EditorPanel.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/EditJob.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/Selection.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/edit.js"><xsl:comment> </xsl:comment></script>

      </xsl:if>
      <xsl:call-template name="page_head_extension"/>
    </head>
  </xsl:template>
  
  <xsl:template match="doc:document/doc:head_">
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      <meta name="served" content="{current-dateTime()}"/>
      <title><xsl:value-of select="doc:title" /></title>
      <link href="{$toRootPath}/livcos.org/web/css/global.css" rel="stylesheet" type="text/css" />
      <link href="{$toRootPath}/livcos.org/web/css/web.css" rel="stylesheet" type="text/css" />
      <link href="{$toRootPath}/livcos.org/web/css/gui.css" rel="stylesheet" type="text/css" />
      <link href="{$toRootPath}/livcos.org/web/css/doc.css" rel="stylesheet" type="text/css" />
      <link href="{$toRootPath}/livcos.org/web/css/status.css" rel="stylesheet" type="text/css" />
    	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/script/util.js"><xsl:comment> </xsl:comment></script>
    	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/script/E.js"><xsl:comment> </xsl:comment></script>
    	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/script/init.js"><xsl:comment> </xsl:comment></script>
      <xsl:if test="$incl-editor = '1'">
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/script/DragDrop.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/script/gui.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/script/doc.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/editSetup.js"><xsl:comment> </xsl:comment></script>
        
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/Entity.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/EntityView.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/editActions.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/EditorPanel.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/EditJob.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/Selection.js"><xsl:comment> </xsl:comment></script>
      	<script type="text/javascript" src="{$toRootPath}/livcos.org/web/edit/script/edit.js"><xsl:comment> </xsl:comment></script>
        
      </xsl:if>
      <xsl:call-template name="page_head_extension"/>
    </head>
  </xsl:template>
  
</xsl:stylesheet>
